home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / print / PageableDoc.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  982 b   |  41 lines

  1. package sun.print;
  2.  
  3. import java.awt.print.Pageable;
  4. import java.io.IOException;
  5. import java.io.InputStream;
  6. import java.io.Reader;
  7. import java.io.UnsupportedEncodingException;
  8. import javax.print.Doc;
  9. import javax.print.DocFlavor;
  10. import javax.print.DocFlavor.SERVICE_FORMATTED;
  11. import javax.print.attribute.DocAttributeSet;
  12. import javax.print.attribute.HashDocAttributeSet;
  13.  
  14. public class PageableDoc implements Doc {
  15.    private Pageable pageable;
  16.  
  17.    public PageableDoc(Pageable var1) {
  18.       this.pageable = var1;
  19.    }
  20.  
  21.    public DocFlavor getDocFlavor() {
  22.       return SERVICE_FORMATTED.PAGEABLE;
  23.    }
  24.  
  25.    public DocAttributeSet getAttributes() {
  26.       return new HashDocAttributeSet();
  27.    }
  28.  
  29.    public Object getPrintData() throws IOException {
  30.       return this.pageable;
  31.    }
  32.  
  33.    public Reader getReaderForText() throws UnsupportedEncodingException, IOException {
  34.       return null;
  35.    }
  36.  
  37.    public InputStream getStreamForBytes() throws IOException {
  38.       return null;
  39.    }
  40. }
  41.